package com.resign.carl.simplefactory.enumeration;

import com.resign.carl.lang.EnumCode;

/**
 * Created by carl.zhao on 2016/6/14.
 */
public enum PizzaType implements EnumCode<Integer> {
    CHEESE(1, "cheese"),
    PEPPERONI(2, "pepperoni"),
    CLAM(3, "clam"),
    VEGGIE(4, "veggie");

    private Integer key;
    private String desc;
    PizzaType(Integer key, String desc){
        this.key = key;
        this.desc = desc;
    }
    @Override
    public Integer getKey() {
        return key;
    }
    @Override
    public String getDescription() {
        return desc;
    }
}
